const production = false;

//数据库配置
export const DB_CONFIG = {
	host: '127.0.0.1',
	user: 'keke',
	password: '123123',
	port: 3306,
	database: 'majong',
	logSql: true,
	charset: 'utf8mb4',
};

// api前缀
export const BASE_API = '/api';
// 启动端口
export const START_PORT = 6688;

// 服务器路径
export const HOST = '//127.0.0.1';

// code
export const SUCCESS_CODE = 200; // 成功
export const ERROR_CODE = 500; // 错误
export const VALIDATE_FAILED_CODE = 401; // 权限异常

// token 密钥
export const TOKEN_KEY = 'pakchoi';

// 不需要验证token的接口
export const notCheckTokenApis = {
	登录: '/user/login',
	注册: '/user/register',
	权限列表: '/auth/list',
	获取验证码: '/user/getcode',
};

//是否输出日志
export const OPEN_LOG = true;

//每次查询的个数(默认)
export const LIMIT_LENGTH = 7;

//云存储
export const QINIU = {
	accessKey: 'accessKey',
	secretKey: 'secretKey',
	bucket: 'bucket',
};

/**
 * 对接
 */
export const IMGAE_BASE = '/imgs'; // 图片访问路径
